package com.woniu.service.Impl.homePage;

import com.woniu.dao.homePage.TagDao;
import com.woniu.service.homePage.ITagService;
import com.woniu.util.ResData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 凌雨
 * @data 2023/3/10 17:20
 */
@Service
public class TagServiceImpl implements ITagService {

    @Autowired
    private TagDao tagDao;

    /**
     * 查询所有标签
     * @return
     */
    @Override
    public ResData<?> queryAll() {
        return new ResData<>().ok(tagDao.queryAllTags());
    }
}
